//
//  RegisterView.m
//  DoubanDemo1
//
//  Created by lanou3g on 15/11/21.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "RegisterView.h"
#import "LTView.h"

@implementation RegisterView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self allViews];
    }
    return self;
}

- (void)allViews
{
    //用户名
    self.userNameLTView = [[LTView alloc]initWithFrame:CGRectMake(30, 50, 315, 30)];
    self.userNameLTView.label.text = @"用户名:";
    [self addSubview:self.userNameLTView];
    
    self.passWordLTView = [[LTView alloc]initWithFrame:CGRectMake(30, 100, 315, 30)];
    self.passWordLTView.label.text = @"密码:";
    self.passWordLTView.textField.secureTextEntry = YES;
    self.passWordLTView.textField.placeholder = @"请输入密码";
    [self addSubview:self.passWordLTView];
    
    self.confirmLTView = [[LTView alloc]initWithFrame:CGRectMake(30, 150, 315, 30)];
    self.confirmLTView.label.text = @"确认密码:";
    self.confirmLTView.textField.secureTextEntry = YES;
    self.confirmLTView.textField.placeholder = @"再次输入密码";
    [self addSubview:self.confirmLTView];
    
    self.emailLTView = [[LTView alloc]initWithFrame:CGRectMake(30, 200, 315, 30)];
    self.emailLTView.label.text = @"邮箱:";
    self.emailLTView.textField.placeholder = @"请输入邮箱";
    [self addSubview:self.emailLTView];
    
    self.phoneNumberLTview = [[LTView alloc]initWithFrame:CGRectMake(30, 250, 315, 30)];
    self.phoneNumberLTview.label.text = @"联系方式:";
    self.phoneNumberLTview.textField.placeholder = @"请输入联系方式";
    [self addSubview:self.phoneNumberLTview];
    
}
@end
